package com.heqiang.manage.service;


import com.heqiang.manage.dao.AdminRepository;
import com.heqiang.model.manage.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;


@Service
public class AdminService {

    @Autowired
    private AdminRepository repository;
    /**
     *@Description 查询全部
     *@Author  zhang heqiang
     *@CreateTime  2020/2/27 20:25
     */
    public List<Admin> search() {
        List<Admin> list = repository.findAll();
        return list;
    }
}
